package com.glasses.pandora;

import com.glasses.pandora.domain.Report;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Jean-Luc Burot
 * @since 2014-10-07
 */
public class Mock {
    public static Report getReport(Long id) {
        Report r1 = new Report();
        r1.setId(id);
        r1.setCreated(Date.from(Instant.now()));
        r1.setContent("Dies ist ein Testcontent des Reports!");
        
        return r1;
    }
    
    public static List<Report> getReports() {
        Report r1 = new Report();
        r1.setId(Long.parseLong("1"));
        r1.setCreated(Date.from(Instant.now()));
        r1.setContent("Erster Bericht");
        
        Report r2 = new Report();
        r2.setId(Long.parseLong("2"));
        r2.setCreated(Date.from(Instant.now()));
        r2.setContent("Zweiter Bericht");
        
        Report r3 = new Report();
        r3.setId(Long.parseLong("3"));
        r3.setCreated(Date.from(Instant.now()));
        r3.setContent("Dritter Bericht");
        
        List<Report> reports = new ArrayList<>();
        reports.add(r1);
        reports.add(r2);
        reports.add(r3);
        
        return reports;
    }
}
